package wiki.hitime.stl.daq.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhangdaoping
 * @create 2019-07-18 16:28
 */
@FeignClient(name = "dingTalk", url = "https://oapi.dingtalk.com")
public interface DingTalkFeignClient {

    /**
     * 钉钉消息发送
     *
     * @param accessToken 令牌
     * @param requestObj  请求实体
     * @return
     */
    @RequestMapping(value = "/robot/send?access_token={access_token}",method = RequestMethod.POST)
    JSONObject send(@PathVariable("access_token") String accessToken, @RequestBody JSONObject requestObj);
}
